from django.db import models

# Create your models here.
class Course(models.Model):
    course_no = models.CharField(max_length=100, unique=True, verbose_name='课程编号')
    course_name = models.CharField(max_length=50, unique=True, verbose_name='课程名字')
    course_time = models.IntegerField(verbose_name='课时')
    create_time = models.DateField(auto_now_add=True)

    class Meta:
        db_table = 'course'